/**
 * 
 */
package cn.iune.erp.inventory;

import java.math.BigDecimal;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

/**
 * @author Administrator
 *
 */
@Entity
@Table(name="StorageRecordDetail",uniqueConstraints={@UniqueConstraint(columnNames={"recordNo", "serialNo", "enterpriseNo"})})
@NamedQuery(name="StorageRecordDetail.findAll", query="SELECT s FROM StorageRecordDetail s")
public class StorageRecordDetail  {


	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=32)
	private String systemCode;
	@Column(length=4)
	private String billType;
	@Column(length=20)
	private String billTypeName;
	/*
	 * 1:入库
	 * 2:销货
	 * 3:领用
	 * 4:调拨
	 * 5:调整
	 */
	private int dealType = 0;

	
	private Date orderDate;
	@Column(length=10)
	private String state = "active";
	@Column(length=10)
	private String status = "open";
	@Column(length=10)
	private String audit = "active";

	@Column(length=1)
	private String revOpay;
	private int direction = 0;
	@Column(length=1)
	private String costingCode;
	private Date confirmDate;
	
	@Column(length=4)
	private String origin;
	@Column(length=20)
	private String originName;
	@Column(length=20)
	private String originNo;
	@Column(length=5)
	private String originSerialNo;
	
	@Column(length=15)
	private String recordNo;
	
	@Column(length=32)
	private String factoryID;
	@Column(length=15)
	private String factoryNo;
	@Column(length=20)
	private String factoryName;
	
	@Column(length=5)
	private String procedureStepD;//移出工序号//库存量不足准许出库：yes，否则：no
	
	@Column(length=3)
	private String storageTypeD;
	@Column(length=20)
	private String storageTypeDLabel;
	@Column(length=65)
	private String providerID;
	@Column(length=32)
	private String providerNo;
	@Column(length=20)
	private String shortName;
	@Column(length=128)
	private String providerName;
	
	@Column(length=5)
	private String procedureStep;//移入工序号//库存量不足准许出库：yes，否则：no
	
	@Column(length=3)
	private String storageType;
	@Column(length=20)
	private String storageTypeLabel;
	@Column(length=65)
	private String storageID;
	@Column(length=32)
	private String storageNo;
	@Column(length=20)
	private String storageName;
	@Column(length=128)
	private String floorNo;
	
//	private String factoryNoOut;
//	private String factoryNameOut;
	
	@Column(length=1)
	private String invoiceCategory;
	@Column(length=20)
	private String invoiceCategoryLabel;
	
	private int taxType = 0;
	@Column(length=10)
	private String taxTypeLabel;
	@Column(precision=10,scale=2)
	private BigDecimal taxRate = BigDecimal.ZERO;

	@Column(length=5)
	private String serialNo;
	@Column(length=32)
	private String fMasterID;
	
	@Column(length=32,nullable=true)
	private String sbomID;//销售BOM（成套出售时使用）
	private int lv = 0;//主件：0，元件：1
	
	private int sttts = 1;//是否参加金额的统计。不参加：0，参加：1
	private int checkin = 1;//是否参加出入库登记（影响单据总数量）。不参加（不计入单据总数量）：0，参加：1
	
	@Column(length=32,nullable=true)
	private String itemID;
	@Column(length=30)
	private String itemNo;
	@Column(length=100)
	private String itemName;
	@Column(length=512)
	private String itemProperty;// = "*****";
	@Transient
	private String itemDescribe;
	@Column(length=15)
	private String unitCode;
	@Column(length=20)
	private String unitName;
	
//	@Column(length=1)
//	private String process;
//	@Column(length=10)
//	private String processLabel;
	
//	@Transient
//	@Column(length=256)
//	private String imageurl;
//	@Transient
//	@Column(length=1024,columnDefinition="TEXT")
//	private String images;
	
	
	private int validDays = 0;//有效天数
	private int checkoutAgainDays = 0;//复检天数
	
	/*
	检验单
	检验方式
	0:免检
	1:抽检（减量）
	2:抽检（正常）
	3:抽检（加严）
	4:全检
	 */
	private int qualityType = 0;
	@Column(length=10)
	private String qualityTypeLabel = "0:免检";//0:免检,1:抽检,2:全检
	
	/*
	入库单	检验单
	检验状态	判定
	1:待验	
	2:合格	2:允收
	3:不良	3:拒收
	4:特采	4:特采
		
	9:在验	9:在验
	 */
	private int qualityStatus = 2;
	@Column(length=10)
	private String qualityStatusLabel = "2.合格";
	
	@Column(length=512)
	private String blankSize;//下料尺寸
	
	private int materialType = 1;
	@Column(length=12)
	private String materialTypeLabel = "1.直接材料";//2.间接材料；3.供应商供料；5.客户供料


	@Column(length=1)
	private String devolveCause;//默认值为null
	@Column(length=10)
	private String devolveCauseLabel;//1:正常完成；2:返工完成；3:退回返工；4:拨转；5:盘亏盘盈；6:投产
	
	@Column(precision=38,scale=6)
	private BigDecimal itemPrice = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal discountRate = BigDecimal.ZERO;

	@Column(precision=10,scale=2)
	private BigDecimal arriveAmount = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal wasterAmount = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal ullageAmount = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal arriveAmountBack = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal priceAmount = BigDecimal.ZERO;

	@Column(precision=10,scale=2)
	private BigDecimal itemAmount = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmount = BigDecimal.ZERO;
	
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountOld = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountTax = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountTotal = BigDecimal.ZERO;

	//单据金额需减去扣款金额之后再算税，也就是说单据金额减去扣款金额之后才是真正的单据金额
//	@Column(precision=38,scale=2)
//	private BigDecimal deductAmount = BigDecimal.ZERO; //扣款金额，单据录入时可以修改，质量检验时可以录入
	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0")
	private BigDecimal discountAmount = BigDecimal.ZERO;//整单折扣//扣款金额

	//--录入费用发票后，录入费用结算单，在费用结算单中按金额或者数量将费用分摊到进货单明细表中的项目，单据录入时不能修改
	//用于成本核算时计入成本使用，其它时候不使用
	@Column(precision=38,scale=2)
	private BigDecimal apportionAmount = BigDecimal.ZERO; //进货费用(分摊)
	

	//件装（每包装数量，如：每箱啤酒24瓶piecePackage=24，itemAmount=48，则pieceQuantity=2件）
	@Column(precision=10,scale=2,columnDefinition="DECIMAL(10,2) default 0")
	private BigDecimal piecePackage = BigDecimal.ZERO;
	//件数
	@Column(precision=10,scale=2)
	private BigDecimal pieceQuantity = BigDecimal.ZERO;

	
//	@Transient
//	@Column(precision=10,scale=2)
//	private BigDecimal accountQuantityI = BigDecimal.ZERO;
//	@Transient
//	@Column(precision=10,scale=2)
//	private BigDecimal accountQuantityO = BigDecimal.ZERO;
//	@Transient
//	@Column(precision=10,scale=2)
//	private BigDecimal pieceQuantityI = BigDecimal.ZERO;
//	@Transient
//	@Column(precision=10,scale=2)
//	private BigDecimal pieceQuantityO = BigDecimal.ZERO;

	//出入库后结存的数量、单位成本和金额。
//	@Column(precision=10,scale=2,columnDefinition="DECIMAL(10,2) default 0",nullable=false)
//	private BigDecimal itemQuantityL = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal costingAmountL = BigDecimal.ZERO;
//	@Column(precision=10,scale=2)
//	private BigDecimal pieceQuantityL = BigDecimal.ZERO;
//	@Column(precision=38,scale=6)
//	private BigDecimal costingAmountPerL = BigDecimal.ZERO;
	
	@Column(precision=10,scale=2)
	private BigDecimal wasterItemIng = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal wasterItemAmount = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal wasterPiece = BigDecimal.ZERO;

	@Column(precision=10,scale=2)
	private BigDecimal invoiceQuantityIng = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal invoiceQuantity = BigDecimal.ZERO;
	//此开票金额作为采购成本，更新时已经考虑啦税种问题，暂估成本也写入此列
	@Column(precision=38,scale=2)
	private BigDecimal invoiceAmount = BigDecimal.ZERO;

	@Column(precision=10,scale=2)
	private BigDecimal evaluateQuantityIng = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal evaluateQuantity = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal evaluateAmount = BigDecimal.ZERO;
	
	@Column(precision=10,scale=2)
	private BigDecimal backItemIng = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal backItemAmount = BigDecimal.ZERO;
	@Column(precision=10,scale=2)
	private BigDecimal backPiece = BigDecimal.ZERO;

//	@Column(precision=38,scale=2)
//	private BigDecimal materialAmount = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal workingAmount = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal manufactAmount = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal processAmount = BigDecimal.ZERO;
//	@Column(precision=38,scale=2)
//	private BigDecimal costingAmount = BigDecimal.ZERO;//等待取消
	
	//下面的单位成本列可能没有用（可以通过成本金额/数量计算得出），也没有实际用处
	//但是在UI界面输入的时候可能有用，目前不确定？？？？？？？？
//	@Column(precision=38,scale=6)
//	private BigDecimal materialAmountPer = BigDecimal.ZERO;
//	@Column(precision=38,scale=6)
//	private BigDecimal workingAmountPer = BigDecimal.ZERO;
//	@Column(precision=38,scale=6)
//	private BigDecimal manufactAmountPer = BigDecimal.ZERO;
//	@Column(precision=38,scale=6)
//	private BigDecimal processAmountPer = BigDecimal.ZERO;
//	@Column(precision=38,scale=6)
//	private BigDecimal costingAmountPer = BigDecimal.ZERO;//等待取消
	
	//下面的工时为投产单、转移单发生（物料转移时实际工时）
	@Column(precision=10,scale=2)
	private BigDecimal workingHourUsed = BigDecimal.ZERO;//人工工时
	@Column(precision=10,scale=2)
	private BigDecimal machineHourUsed = BigDecimal.ZERO;//机器工时

	@Column(length=20)
	private String batchNo;
	@Column(length=50)
	private String batchDescribe;
	private int qualityPeriod = 0;//保质期管理0;1
	private Date produceDate;
	private Date validDate;
	private Date checkoutAgainDate;

	@Column(length=10)
	private String brand;
	@Column(length=20)
	private String brandLabel;
	@Column(length=20)
	private String placeOrigin;
	@Column(length=128)
	private String manufacturer;
	
	@Column(length=1024)
	private String storeNo;

//	@Column(length=1)
//	private String abcGrade;

	@Column(precision=10,scale=2)
	private BigDecimal itemWeight = BigDecimal.ZERO;
	@Column(length=20)
	private String itemSize;

	@Column(precision=10,scale=2)
	private BigDecimal orderWeight = BigDecimal.ZERO;
	@Column(length=20)
	private String orderSize;
	
	@Column(length=20)
	private String projectNo;
	@Column(length=15)
	private String orderNo;

	@Column(length=20)
	private String workNo;//工单号
//	@Column(length=5)
//	private String workSerialNo;//配料单序号

//	@Column(length=5,nullable=false)//"00000"
//	private String checkoutTimes = "00000";
	
	//预占库存
	int frozenFlag = 0;
	
	@Column(columnDefinition="INT default 0 COMMENT '生成分录'",nullable=false)
	private int entryFlag = 0;//生成分录
	@Column(columnDefinition="INT default 0 COMMENT '生成成本分录'",nullable=false)
	private int entryCost = 0;//生成分录
	
	//暂估码
	private int evaluateFlag = 0;
	//开票码
	private int invoiceFlag = 0;
	//废品码
	private int wasterFlag = 0;
	//完工码（派工单--转移单报工完成标识）
	private int finishFlag = 0;

	@Column(length=20)
	private String resultStatus = "待审核";

//	@Column(length=15)
//	private String departmentNo;
//	@Column(length=256)
//	private String departmentName;
	@Column(length=256)
	private String employeeNo;
	@Column(length=256)
	private String employeeName;

	@Column(length=255)
	private String comments;
	
//	@Column(length=15)
//	private String cUsercode;
//	@Column(length=20)
//	private String cUsername;//制单人
//	private Timestamp cDatetime;
	
	@Column(length=65)
	private String userId;

	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}


	public int getMaterialType() {
		return materialType;
	}

	public void setMaterialType(int materialType) {
		this.materialType = materialType;
	}

	public String getMaterialTypeLabel() {
		return materialTypeLabel;
	}

	public void setMaterialTypeLabel(String materialTypeLabel) {
		this.materialTypeLabel = materialTypeLabel;
	}

	public BigDecimal getDiscountRate() {
		return discountRate;
	}

	public void setDiscountRate(BigDecimal discountRate) {
		this.discountRate = discountRate;
	}

	public String getProcedureStep() {
		return procedureStep;
	}

	public void setProcedureStep(String procedureStep) {
		this.procedureStep = procedureStep;
	}

	public String getItemProperty() {
		return itemProperty;
	}

	public void setItemProperty(String itemProperty) {
		this.itemProperty = itemProperty;
	}

	public String getEmployeeNo() {
		return employeeNo;
	}

	public void setEmployeeNo(String employeeNo) {
		this.employeeNo = employeeNo;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSystemCode() {
		return systemCode;
	}

	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}

	public String getCostingCode() {
		return costingCode;
	}

	public void setCostingCode(String costingCode) {
		this.costingCode = costingCode;
	}

	public String getQualityStatusLabel() {
		return qualityStatusLabel;
	}

	public void setQualityStatusLabel(String qualityStatusLabel) {
		this.qualityStatusLabel = qualityStatusLabel;
	}

	public String getBrandLabel() {
		return brandLabel;
	}

	public void setBrandLabel(String brandLabel) {
		this.brandLabel = brandLabel;
	}

	public String getStorageTypeLabel() {
		return storageTypeLabel;
	}

	public void setStorageTypeLabel(String storageTypeLabel) {
		this.storageTypeLabel = storageTypeLabel;
	}

	public String getStorageTypeDLabel() {
		return storageTypeDLabel;
	}

	public void setStorageTypeDLabel(String storageTypeDLabel) {
		this.storageTypeDLabel = storageTypeDLabel;
	}

	public String getItemSize() {
		return itemSize;
	}

	public void setItemSize(String itemSize) {
		this.itemSize = itemSize;
	}

	public int getTaxType() {
		return taxType;
	}

	public void setTaxType(int taxType) {
		this.taxType = taxType;
	}

	public String getTaxTypeLabel() {
		return taxTypeLabel;
	}

	public void setTaxTypeLabel(String taxTypeLabel) {
		this.taxTypeLabel = taxTypeLabel;
	}

	public BigDecimal getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(BigDecimal taxRate) {
		this.taxRate = taxRate;
	}

	public BigDecimal getOrderWeight() {
		return orderWeight;
	}

	public void setOrderWeight(BigDecimal orderWeight) {
		this.orderWeight = orderWeight;
	}

	public String getOrderSize() {
		return orderSize;
	}

	public void setOrderSize(String orderSize) {
		this.orderSize = orderSize;
	}

	public String getWorkNo() {
		return workNo;
	}
	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getPlaceOrigin() {
		return placeOrigin;
	}

	public void setPlaceOrigin(String placeOrigin) {
		this.placeOrigin = placeOrigin;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public BigDecimal getItemWeight() {
		return itemWeight;
	}

	public void setItemWeight(BigDecimal itemWeight) {
		this.itemWeight = itemWeight;
	}

	public String getProjectNo() {
		return projectNo;
	}

	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	public String getStoreNo() {
		return storeNo;
	}

	public void setStoreNo(String storeNo) {
		this.storeNo = storeNo;
	}

	public String getBillTypeName() {
		return billTypeName;
	}

	public void setBillTypeName(String billTypeName) {
		this.billTypeName = billTypeName;
	}

	public String getOriginName() {
		return originName;
	}

	public void setOriginName(String originName) {
		this.originName = originName;
	}


	public BigDecimal getWasterItemIng() {
		return wasterItemIng;
	}

	public void setWasterItemIng(BigDecimal wasterItemIng) {
		this.wasterItemIng = wasterItemIng;
	}

	public BigDecimal getWasterItemAmount() {
		return wasterItemAmount;
	}

	public void setWasterItemAmount(BigDecimal wasterItemAmount) {
		this.wasterItemAmount = wasterItemAmount;
	}

	public BigDecimal getWasterPiece() {
		return wasterPiece;
	}

	public void setWasterPiece(BigDecimal wasterPiece) {
		this.wasterPiece = wasterPiece;
	}

	public BigDecimal getBackItemIng() {
		return backItemIng;
	}

	public void setBackItemIng(BigDecimal backItemIng) {
		this.backItemIng = backItemIng;
	}

	public BigDecimal getBackItemAmount() {
		return backItemAmount;
	}

	public void setBackItemAmount(BigDecimal backItemAmount) {
		this.backItemAmount = backItemAmount;
	}

	public BigDecimal getBackPiece() {
		return backPiece;
	}

	public void setBackPiece(BigDecimal backPiece) {
		this.backPiece = backPiece;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAudit() {
		return audit;
	}

	public void setAudit(String audit) {
		this.audit = audit;
	}

	
	public int getQualityStatus() {
		return qualityStatus;
	}

	public void setQualityStatus(int qualityStatus) {
		this.qualityStatus = qualityStatus;
	}

	public String getFactoryNo() {
		return factoryNo;
	}

	public void setFactoryNo(String factoryNo) {
		this.factoryNo = factoryNo;
	}

	public String getFactoryName() {
		return factoryName;
	}

	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}

	public BigDecimal getApportionAmount() {
		return apportionAmount;
	}

	public void setApportionAmount(BigDecimal apportionAmount) {
		this.apportionAmount = apportionAmount;
	}

	public String getStorageType() {
		return storageType;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}

	public String getStorageTypeD() {
		return storageTypeD;
	}

	public void setStorageTypeD(String storageTypeD) {
		this.storageTypeD = storageTypeD;
	}

	public String getRevOpay() {
		return revOpay;
	}

	public void setRevOpay(String revOpay) {
		this.revOpay = revOpay;
	}

	public String getfID() {
		return fID;
	}

	public void setfID(String fID) {
		this.fID = fID;
	}
	
	public String getRecordNo() {
		return recordNo;
	}

	public void setRecordNo(String recordNo) {
		this.recordNo = recordNo;
	}

	public String getBillType() {
		return billType;
	}
	public void setBillType(String billType) {
		this.billType = billType;
	}

	public String getStorageNo() {
		return storageNo;
	}
	public void setStorageNo(String storageNo) {
		this.storageNo = storageNo;
	}
	public String getStorageName() {
		return storageName;
	}
	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}
	public String getItemNo() {
		return itemNo;
	}
	public void setItemNo(String itemNo) {
		this.itemNo = itemNo;
	}
	public String getItemDescribe() {
		return itemDescribe;
	}
	public void setItemDescribe(String itemDescribe) {
		this.itemDescribe = itemDescribe;
	}

	public String getUnitCode() {
		return unitCode;
	}
	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}
	public String getUnitName() {
		return unitName;
	}
	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public BigDecimal getItemAmount() {
		return itemAmount;
	}

	public void setItemAmount(BigDecimal itemAmount) {
		this.itemAmount = itemAmount;
	}

	public BigDecimal getItemPrice() {
		return itemPrice;
	}

	public void setItemPrice(BigDecimal itemPrice) {
		this.itemPrice = itemPrice;
	}

	public BigDecimal getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}
	public BigDecimal getOrderAmountOld() {
		return orderAmountOld;
	}
	public void setOrderAmountOld(BigDecimal orderAmountOld) {
		this.orderAmountOld = orderAmountOld;
	}
	public BigDecimal getOrderAmountTax() {
		return orderAmountTax;
	}
	public void setOrderAmountTax(BigDecimal orderAmountTax) {
		this.orderAmountTax = orderAmountTax;
	}
	public String getEnterpriseNo() {
		return enterpriseNo;
	}

	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	
	public BigDecimal getInvoiceQuantity() {
		return invoiceQuantity;
	}
	public void setInvoiceQuantity(BigDecimal invoiceQuantity) {
		this.invoiceQuantity = invoiceQuantity;
	}
	public BigDecimal getArriveAmount() {
		return arriveAmount;
	}
	public void setArriveAmount(BigDecimal arriveAmount) {
		this.arriveAmount = arriveAmount;
	}
	public BigDecimal getWasterAmount() {
		return wasterAmount;
	}
	public void setWasterAmount(BigDecimal wasterAmount) {
		this.wasterAmount = wasterAmount;
	}
	public BigDecimal getUllageAmount() {
		return ullageAmount;
	}
	public void setUllageAmount(BigDecimal ullageAmount) {
		this.ullageAmount = ullageAmount;
	}
	public BigDecimal getArriveAmountBack() {
		return arriveAmountBack;
	}
	public void setArriveAmountBack(BigDecimal arriveAmountBack) {
		this.arriveAmountBack = arriveAmountBack;
	}
	public BigDecimal getPriceAmount() {
		return priceAmount;
	}
	public void setPriceAmount(BigDecimal priceAmount) {
		this.priceAmount = priceAmount;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getOriginNo() {
		return originNo;
	}
	public void setOriginNo(String originNo) {
		this.originNo = originNo;
	}
	
	public String getfMasterID() {
		return fMasterID;
	}
	public void setfMasterID(String fMasterID) {
		this.fMasterID = fMasterID;
	}
	public String getProviderNo() {
		return providerNo;
	}
	public void setProviderNo(String providerNo) {
		this.providerNo = providerNo;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}
	public String getDevolveCause() {
		return devolveCause;
	}
	public void setDevolveCause(String devolveCause) {
		this.devolveCause = devolveCause;
	}

	public String getDevolveCauseLabel() {
		return devolveCauseLabel;
	}

	public void setDevolveCauseLabel(String devolveCauseLabel) {
		this.devolveCauseLabel = devolveCauseLabel;
	}
	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	public BigDecimal getPieceQuantity() {
		return pieceQuantity;
	}
	public void setPieceQuantity(BigDecimal pieceQuantity) {
		this.pieceQuantity = pieceQuantity;
	}
	public BigDecimal getOrderAmountTotal() {
		return orderAmountTotal;
	}
	public void setOrderAmountTotal(BigDecimal orderAmountTotal) {
		this.orderAmountTotal = orderAmountTotal;
	}
	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}
	public BigDecimal getInvoiceQuantityIng() {
		return invoiceQuantityIng;
	}
	public void setInvoiceQuantityIng(BigDecimal invoiceQuantityIng) {
		this.invoiceQuantityIng = invoiceQuantityIng;
	}
	public String getBatchNo() {
		return batchNo;
	}
	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}
	public String getBatchDescribe() {
		return batchDescribe;
	}
	public void setBatchDescribe(String batchDescribe) {
		this.batchDescribe = batchDescribe;
	}
	public Date getProduceDate() {
		return produceDate;
	}
	public void setProduceDate(Date produceDate) {
		this.produceDate = produceDate;
	}
	public Date getValidDate() {
		return validDate;
	}
	public void setValidDate(Date validDate) {
		this.validDate = validDate;
	}
	public Date getCheckoutAgainDate() {
		return checkoutAgainDate;
	}
	public void setCheckoutAgainDate(Date checkoutAgainDate) {
		this.checkoutAgainDate = checkoutAgainDate;
	}
	public Date getConfirmDate() {
		return confirmDate;
	}
	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}
	
	public String getFloorNo() {
		return floorNo;
	}

	public void setFloorNo(String floorNo) {
		this.floorNo = floorNo;
	}

	public BigDecimal getEvaluateQuantity() {
		return evaluateQuantity;
	}

	public void setEvaluateQuantity(BigDecimal evaluateQuantity) {
		this.evaluateQuantity = evaluateQuantity;
	}

	public BigDecimal getEvaluateQuantityIng() {
		return evaluateQuantityIng;
	}

	public void setEvaluateQuantityIng(BigDecimal evaluateQuantityIng) {
		this.evaluateQuantityIng = evaluateQuantityIng;
	}

	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getProviderID() {
		return providerID;
	}
	public void setProviderID(String providerID) {
		this.providerID = providerID;
	}
	public String getStorageID() {
		return storageID;
	}
	public void setStorageID(String storageID) {
		this.storageID = storageID;
	}
	public String getItemID() {
		return itemID;
	}
	public void setItemID(String itemID) {
		this.itemID = itemID;
	}
	public int getQualityPeriod() {
		return qualityPeriod;
	}
	public void setQualityPeriod(int qualityPeriod) {
		this.qualityPeriod = qualityPeriod;
	}
	public String getFactoryID() {
		return factoryID;
	}
	public void setFactoryID(String factoryID) {
		this.factoryID = factoryID;
	}
	public String getBlankSize() {
		return blankSize;
	}
	public void setBlankSize(String blankSize) {
		this.blankSize = blankSize;
	}
	public String getResultStatus() {
		return resultStatus;
	}
	public void setResultStatus(String resultStatus) {
		this.resultStatus = resultStatus;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public int getQualityType() {
		return qualityType;
	}
	public void setQualityType(int qualityType) {
		this.qualityType = qualityType;
	}
	public String getQualityTypeLabel() {
		return qualityTypeLabel;
	}
	public void setQualityTypeLabel(String qualityTypeLabel) {
		this.qualityTypeLabel = qualityTypeLabel;
	}
	public int getValidDays() {
		return validDays;
	}
	public void setValidDays(int validDays) {
		this.validDays = validDays;
	}
	public int getCheckoutAgainDays() {
		return checkoutAgainDays;
	}
	public void setCheckoutAgainDays(int checkoutAgainDays) {
		this.checkoutAgainDays = checkoutAgainDays;
	}

	public String getInvoiceCategory() {
		return invoiceCategory;
	}
	public void setInvoiceCategory(String invoiceCategory) {
		this.invoiceCategory = invoiceCategory;
	}
	public String getInvoiceCategoryLabel() {
		return invoiceCategoryLabel;
	}
	public void setInvoiceCategoryLabel(String invoiceCategoryLabel) {
		this.invoiceCategoryLabel = invoiceCategoryLabel;
	}
	public String getSbomID() {
		return sbomID;
	}
	public void setSbomID(String sbomID) {
		this.sbomID = sbomID;
	}
	public int getLv() {
		return lv;
	}
	public void setLv(int lv) {
		this.lv = lv;
	}
	public int getSttts() {
		return sttts;
	}
	public void setSttts(int sttts) {
		this.sttts = sttts;
	}
	public int getCheckin() {
		return checkin;
	}
	public void setCheckin(int checkin) {
		this.checkin = checkin;
	}
	public String getProcedureStepD() {
		return procedureStepD;
	}
	public void setProcedureStepD(String procedureStepD) {
		this.procedureStepD = procedureStepD;
	}
	public String getOriginSerialNo() {
		return originSerialNo;
	}
	public void setOriginSerialNo(String originSerialNo) {
		this.originSerialNo = originSerialNo;
	}
	public String getSerialNo() {
		return serialNo;
	}
	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}
	public BigDecimal getDiscountAmount() {
		return discountAmount;
	}
	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}
	public BigDecimal getPiecePackage() {
		return piecePackage;
	}
	public void setPiecePackage(BigDecimal piecePackage) {
		this.piecePackage = piecePackage;
	}
	public int getInvoiceFlag() {
		return invoiceFlag;
	}
	public void setInvoiceFlag(int invoiceFlag) {
		this.invoiceFlag = invoiceFlag;
	}
	public int getWasterFlag() {
		return wasterFlag;
	}
	public void setWasterFlag(int wasterFlag) {
		this.wasterFlag = wasterFlag;
	}
	public int getFinishFlag() {
		return finishFlag;
	}
	public void setFinishFlag(int finishFlag) {
		this.finishFlag = finishFlag;
	}
	public int getEvaluateFlag() {
		return evaluateFlag;
	}
	public void setEvaluateFlag(int evaluateFlag) {
		this.evaluateFlag = evaluateFlag;
	}
	public int getFrozenFlag() {
		return frozenFlag;
	}
	public void setFrozenFlag(int frozenFlag) {
		this.frozenFlag = frozenFlag;
	}
	public BigDecimal getWorkingHourUsed() {
		return workingHourUsed;
	}
	public void setWorkingHourUsed(BigDecimal workingHourUsed) {
		this.workingHourUsed = workingHourUsed;
	}
	public BigDecimal getMachineHourUsed() {
		return machineHourUsed;
	}
	public void setMachineHourUsed(BigDecimal machineHourUsed) {
		this.machineHourUsed = machineHourUsed;
	}
	public int getEntryFlag() {
		return entryFlag;
	}
	public void setEntryFlag(int entryFlag) {
		this.entryFlag = entryFlag;
	}
	public int getDealType() {
		return dealType;
	}
	public void setDealType(int dealType) {
		this.dealType = dealType;
	}
	public int getEntryCost() {
		return entryCost;
	}
	public void setEntryCost(int entryCost) {
		this.entryCost = entryCost;
	}
	public BigDecimal getInvoiceAmount() {
		return invoiceAmount;
	}
	public void setInvoiceAmount(BigDecimal invoiceAmount) {
		this.invoiceAmount = invoiceAmount;
	}




}
